<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class Active
 * 
 * @property int $id
 * @property int $hall_id
 * @property string $name
 * @property string $title
 * @property int $type_id
 * @property \Carbon\Carbon $begin_time
 * @property \Carbon\Carbon $end_time
 * @property string $link_pc
 * @property string $link_h5
 * @property int $open_mode
 * @property string $description
 * @property string $cover
 * @property string $cover_h5
 * @property string $content_pc
 * @property string $content_h5
 * @property int $status
 * @property bool $is_auto_apply
 * @property int $type
 * @property int $template_id
 * @property int $language_id
 * @property string $language_name
 * @property string $rule
 * @property int $limit_times
 * @property int $withdraw_require_type
 * @property int $withdraw_require_validbet
 * @property int $withdraw_require_times
 * @property string $user_levels
 * @property int $sendprize_delay_day
 * @property string $sendprize_delay_time
 * @property bool $is_auto_sendprize
 * @property int $sort
 * @property int $creator_id
 * @property int $updater_id
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class Active extends Eloquent
{
	protected $table = 'active';

	protected $casts = [
		'hall_id' => 'int',
		'type_id' => 'int',
		'open_mode' => 'int',
		'status' => 'int',
		'is_auto_apply' => 'bool',
		'type' => 'int',
		'template_id' => 'int',
		'language_id' => 'int',
		'limit_times' => 'int',
		'withdraw_require_type' => 'int',
		'withdraw_require_validbet' => 'int',
		'withdraw_require_times' => 'int',
		'sendprize_delay_day' => 'int',
		'is_auto_sendprize' => 'bool',
		'sort' => 'int',
		'creator_id' => 'int',
		'updater_id' => 'int'
	];

	protected $dates = [
		'begin_time',
		'end_time'
	];

	protected $fillable = [
		'name',
		'title',
		'type_id',
		'begin_time',
		'end_time',
		'link_pc',
		'link_h5',
		'open_mode',
		'description',
		'cover',
		'cover_h5',
		'content_pc',
		'content_h5',
		'status',
		'is_auto_apply',
		'type',
		'template_id',
		'language_id',
		'language_name',
		'rule',
		'limit_times',
		'withdraw_require_type',
		'withdraw_require_validbet',
		'withdraw_require_times',
		'user_levels',
		'sendprize_delay_day',
		'sendprize_delay_time',
		'is_auto_sendprize',
		'sort',
		'creator_id',
		'updater_id'
	];
}
